+2004-02-04 Federico Mena Quintero <federico@ximian.com>
+
+ Fix #59707.
+
+ * gtk/gtklabel.c (gtk_label_focus): Removed, so we don't ignore
+ the focus chain.
+ (gtk_label_button_press): Fix prototype.
+ (gtk_label_button_release): Likewise.
+ (gtk_label_motion): Likewise.
+
+ * tests/testgtk.c (create_message_dialog): For the dialog with
+ only GTK_BUTTONS_CLOSE, make GTK_RESPONSE_CLOSE the default.
+
2004-02-04 Morten Welinder <terra@gnome.org>
* gtk/gtktoolbar.c (show_menu): Show on the right screen. (Fixes
+2004-02-04 Federico Mena Quintero <federico@ximian.com>
+
+ Fix #59707.
+
+ * gtk/gtklabel.c (gtk_label_focus): Removed, so we don't ignore
+ the focus chain.
+ (gtk_label_button_press): Fix prototype.
+ (gtk_label_button_release): Likewise.
+ (gtk_label_motion): Likewise.
+
+ * tests/testgtk.c (create_message_dialog): For the dialog with
+ only GTK_BUTTONS_CLOSE, make GTK_RESPONSE_CLOSE the default.
+
2004-02-04 Morten Welinder <terra@gnome.org>
* gtk/gtktoolbar.c (show_menu): Show on the right screen. (Fixes
+2004-02-04 Federico Mena Quintero <federico@ximian.com>
+
+ Fix #59707.
+
+ * gtk/gtklabel.c (gtk_label_focus): Removed, so we don't ignore
+ the focus chain.
+ (gtk_label_button_press): Fix prototype.
+ (gtk_label_button_release): Likewise.
+ (gtk_label_motion): Likewise.
+
+ * tests/testgtk.c (create_message_dialog): For the dialog with
+ only GTK_BUTTONS_CLOSE, make GTK_RESPONSE_CLOSE the default.
+
2004-02-04 Morten Welinder <terra@gnome.org>
* gtk/gtktoolbar.c (show_menu): Show on the right screen. (Fixes
+2004-02-04 Federico Mena Quintero <federico@ximian.com>
+
+ Fix #59707.
+
+ * gtk/gtklabel.c (gtk_label_focus): Removed, so we don't ignore
+ the focus chain.
+ (gtk_label_button_press): Fix prototype.
+ (gtk_label_button_release): Likewise.
+ (gtk_label_motion): Likewise.
+
+ * tests/testgtk.c (create_message_dialog): For the dialog with
+ only GTK_BUTTONS_CLOSE, make GTK_RESPONSE_CLOSE the default.
+
2004-02-04 Morten Welinder <terra@gnome.org>
* gtk/gtktoolbar.c (show_menu): Show on the right screen. (Fixes
+2004-02-04 Federico Mena Quintero <federico@ximian.com>
+
+ Fix #59707.
+
+ * gtk/gtklabel.c (gtk_label_focus): Removed, so we don't ignore
+ the focus chain.
+ (gtk_label_button_press): Fix prototype.
+ (gtk_label_button_release): Likewise.
+ (gtk_label_motion): Likewise.
+
+ * tests/testgtk.c (create_message_dialog): For the dialog with
+ only GTK_BUTTONS_CLOSE, make GTK_RESPONSE_CLOSE the default.
+
2004-02-04 Morten Welinder <terra@gnome.org>
* gtk/gtktoolbar.c (show_menu): Show on the right screen. (Fixes
static void gtk_label_unrealize (GtkWidget *widget);
static void gtk_label_map (GtkWidget *widget);
static void gtk_label_unmap (GtkWidget *widget);
-static gint gtk_label_button_press (GtkWidget *widget,
- GdkEventButton *event);
-static gint gtk_label_button_release (GtkWidget *widget,
- GdkEventButton *event);
-static gint gtk_label_motion (GtkWidget *widget,
- GdkEventMotion *event);
+
+static gboolean gtk_label_button_press (GtkWidget *widget,
+ GdkEventButton *event);
+static gboolean gtk_label_button_release (GtkWidget *widget,
+ GdkEventButton *event);
+static gboolean gtk_label_motion (GtkWidget *widget,
+ GdkEventMotion *event);
static void gtk_label_set_text_internal (GtkLabel *label,
gboolean group_cycling);
static void gtk_label_setup_mnemonic (GtkLabel *label,
guint last_key);
-static gboolean gtk_label_focus (GtkWidget *widget,
- GtkDirectionType direction);
/* For selectable lables: */
static void gtk_label_move_cursor (GtkLabel *label,
widget_class->hierarchy_changed = gtk_label_hierarchy_changed;
widget_class->screen_changed = gtk_label_screen_changed;
widget_class->mnemonic_activate = gtk_label_mnemonic_activate;
- widget_class->focus = gtk_label_focus;
class->move_cursor = gtk_label_move_cursor;
class->copy_clipboard = gtk_label_copy_clipboard;
gtk_label_select_region_index (label, min, max);
}
-static gint
+static gboolean
gtk_label_button_press (GtkWidget *widget,
GdkEventButton *event)
{
return FALSE;
}
-static gint
+static gboolean
gtk_label_button_release (GtkWidget *widget,
GdkEventButton *event)
return TRUE;
}
-static gint
+static gboolean
gtk_label_motion (GtkWidget *widget,
GdkEventMotion *event)
{
return label->use_underline;
}
-static gboolean
-gtk_label_focus (GtkWidget *widget,
- GtkDirectionType direction)
-{
- /* We never want to be in the tab chain */
- return FALSE;
-}
-
/* Compute the X position for an offset that corresponds to the "more important
* cursor position for that offset. We use this when trying to guess to which
* end of the selection we should go to when the user hits the left or
GdkScreen *screen = gtk_widget_get_screen (widget);
make_message_dialog (screen, &info, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, GTK_RESPONSE_OK);
- make_message_dialog (screen, &warning, GTK_MESSAGE_WARNING, GTK_BUTTONS_CLOSE, GTK_RESPONSE_OK);
+ make_message_dialog (screen, &warning, GTK_MESSAGE_WARNING, GTK_BUTTONS_CLOSE, GTK_RESPONSE_CLOSE);
make_message_dialog (screen, &error, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK_CANCEL, GTK_RESPONSE_OK);
- make_message_dialog (screen, &question, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, GTK_RESPONSE_YES);
+ make_message_dialog (screen, &question, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, GTK_RESPONSE_NO);
}
/*